package cn.huiyunche.base.service.enums;

/**
 * The enum .
 */
public enum TmsBillDetailEnum {

    /**
     * Pull import tms url type enum.
     */
    SHIP_COST(10, "里程运费"),

    DC_TOTAL_FUEL(20, "油耗运费"),

    DC_FIXED1(30, "固定运费1"),

    DC_FIXED2(40, "固定运费2"),

    DC_SOME_BONUS(50, "综合运费"),

    DC_FESTIVAL_BONUS(60, "春运补贴"),

    DCTOTAL_FUEL(70, "油耗运费"),

    DC_MODIFY(80, "其他费用"),

    DC_SUM(90, "粗算应付"),

    DC_FUEL(100, "油量"),

    DC_FUEL_UP(110, "油价"),

    DC_FUEL_FEE(120, "油费"),

    DC_PAY_REMAIN_FUEL(130, "应付油费"),

    DC_INS_FEE(140, "保险费"),

    DC_GPS_FEE(150, "GPS费"),

    DC_ZHICHE_BONUS(150, "奖励金额"),

    DC_ASSES_MODIFY(160, "提车考核款"),

    DC_PAY_REDUCE(170, "运费扣减"),

    DC_PAY(180, "实付运费"),

    DC_PAY_BY_OILCARD(190,"油卡充值");



    private final int value;
    private final String text;

    TmsBillDetailEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public int getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value tms url type enum.
     *
     * @param value the value
     * @return the tms url type enum
     */
    public static TmsBillDetailEnum getByValue(int value) {
        for (TmsBillDetailEnum temp : TmsBillDetailEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
